{{$site[extra_script]}}
<footer>

      <div class="footer-top">
      	<div class="container" style="background: transparent;">
	        <div class="row">
	          <!-- Contact Us -->
		          <div class="col-sm-3">
		            <h4><i class="fa fa-map-marker text-red"></i> {{__('Contact Us')}}</h4>
		            <p>{{Configure::read('Site.address')}}</p>
		            {{if Configure::read('Site.phone')}}<p>Tel: {{Configure::read('Site.phone')}}</p>{{/if}}
		            <p>Email: <a href="mailto:{{Configure::read('Site.email')}}">{{Configure::read('Site.email')}}</a>
		            </p>
		          </div>
		          <!-- Recent Tweets -->
		          <div class="col-sm-3">
		            <h4><i class="fa fa-rss-square text-red"></i> {{__('About Us')}}</h4>
		            <p>{{Configure::read('Site.about_us')}}</p>
		          </div>
		          <div class="col-sm-3">
		          </div>
		          <!-- Newsletter -->
		          <div class="col-sm-3">
		            <h4><i class="fa fa-eye text-red"></i> {{__('Follow Us')}}</h4>
		           
		            <p>
			          	{{if Configure::read('Site.wechat_qrcode')}}
			          		<img src="{{Configure::read('Site.wechat_qrcode')}}" style="height:180px;" title="微信二维码" alt="微信二维码">
			          	{{elseif Configure::read('Site.weibo_qrcode')}}
			          		<img src="{{Configure::read('Site.weibo_qrcode')}}" style="height:180px;" title="微博二维码" alt="微博二维码">
			          	{{/if}}
			          </p>   
		          </div>
	        </div>
	        <p style="font-size:12px;text-align:left;">如果无法登录或退出登录，点击这里<a href="javascript:;" onclick="return clearUserCookie();">清除Cookie</a></p>
        </div>
      </div>
    <div class="footer-bottom  clearfix">
    	<div class="container" style="background: transparent;">	
          <div class="copyright">
          	<div class="pull-right"><a href="https://ss.knet.cn/verifyseal.dll?sn=e170907110106688164tip000000&pa=111332" target="_blank"> 
<img style="width:75px;" src="https://wx1.sinaimg.cn/large/65c9d425gy1fjc0ees8rgj20cz04omxg.jpg"  />
</a> &nbsp;{{$site['icp']}}<div class="hide">{{$site['stat_code']}}</div></div>
            Powered by 135editor. Copyright © 2014 ~ {{date('Y')}} , All Rights Reserved. &nbsp;&nbsp;
          </div>
        {{template Elements/sql_dump}}
        </div>
	</div>
</footer>

<!--[if lte IE 6]>
{{$this->Html->script(array('bootstrap-ie.js'))}}
<![endif]-->
{{template Elements/admin_tools}}
<!-- 	
	<div id="ajax_doing_help" title="提示" style="display:none;"></div>
{{if !empty($_SESSION['Auth']) }}

{{$this->Html->script(array(
            'ajaxim/im.load.js',
        ));
}}
<div id="ajaxim"></div>
<script type="text/javascript">
    AjaxIM.loaded(function() { //AjaxIM.client.form('#ajaxim');
    });
    
</script>
{{/if}}
-->

{{if Configure::read('Advertise.couplet_open')}}
	<style>
	/*下面是对联广告的css代码*/
	.duilian{top:120px;position: fixed; width:{{Configure::read('Advertise.couplet_width')+2}}px;z-index: 2147483647; overflow:hidden;}
	.duilian_left{ left:6px;}
	.duilian_right{right:6px;}
	.duilian_con{border:#CCC solid 1px; width:{{Configure::read('Advertise.couplet_width')}}px; height:{{Configure::read('Advertise.couplet_height')}}px; overflow:hidden;}
	.duilian_close{ width:100%; height:24px; line-height:24px; text-align:center; display:block; font-size:13px; color:#555555; text-decoration:none;}
	</style>
	<div class="duilian duilian_left fixed-left">
		<div class="duilian_con">
			{{if substr(Configure::read('Advertise.couplet_left'),0,-4)=='.swf'}}
				<embed src="{{Router::url(Configure::read('Advertise.couplet_left'))}}" width="{{Configure::read('Advertise.couplet_width')}}px" height="{{Configure::read('Advertise.couplet_height')}}px" ></embed>
			{{else}}
				<a href='{{Configure::read('Advertise.couplet_left_link')}}' target='_blank'><img src="{{Router::url(Configure::read('Advertise.couplet_left'))}}" style="width:{{Configure::read('Advertise.couplet_width')}}px;height:{{Configure::read('Advertise.couplet_height')}}px"/></a>
			{{/if}}
		</div>
	    <a href="#" class="duilian_close">X关闭</a>
	</div>
	<div class="duilian duilian_right fixed-right">
		<div class="duilian_con">
			{{if substr(Configure::read('Advertise.couplet_right'),0,-4)=='.swf'}}
				<embed src="{{Router::url(Configure::read('Advertise.couplet_right'))}}" width="{{Configure::read('Advertise.couplet_width')}}px" height="{{Configure::read('Advertise.couplet_height')}}px" ></embed>
			{{else}}
				<a href='{{Configure::read('Advertise.couplet_right_link')}}' target='_blank'><img src="{{Router::url(Configure::read('Advertise.couplet_right'))}}" style="width:{{Configure::read('Advertise.couplet_width')}}px;height:{{Configure::read('Advertise.couplet_height')}}px"/></a>
			{{/if}}
		</div>
	    <a href="#" class="duilian_close">X关闭</a>
	</div>
	<script>
	$(function(){
		var duilian = $("div.duilian");
		var window_h = $(window).height();
		//if(window_w>1000){duilian.show();}
		var t = parseInt((window_h-duilian.height())/2);
		if(t > 100){
			duilian.animate({'top':t});
		}
		$("a.duilian_close").click(function(){
			$(this).parent().remove();
			return false;
		});
	})
	</script>
{{/if}}
<?php //helper中追加的底部脚本 $this->_View->append('bottomscript',$script); ?>
{{$this->fetch('bottomscript')}}
<script src="/js/jquery/jquery.lazyload.js"></script>
<script type="text/javascript">	
var domain_host = '{{$_SERVER['HTTP_HOST']}}}';
{{if strpos($_SERVER['HTTP_HOST'],'.135editor.com')!==false}}
document.domain="135editor.com";
{{/if}}

$(document).ready(function() {
	$("img.lazy").lazyload({
		effect: "fadeIn",
		threshold : 100,
		data_attribute  : "src",
		failure_limit:50
	});
	$(window).trigger('scroll');
});
</script>
{{if $current_data_id}}
<script src="/stats_days/numlog/{{$current_model}}/{{$current_data_id}}/view"></script>
{{/if}}
</body>
</html>
